<template>
  <div class="all-service">
    <van-nav-bar title="全部服务" left-arrow @click-left="$emit('close')" />
    <div class="block">
      <div class="Panel-top">
        <div class="Panel">
          <div class="title"><h2>精选工具</h2></div>
          <div class="two">
            <van-grid :border="false" :column-num="4">

              <van-grid-item @click="$router.push('/download')">
                <div class="item">
                  <i class="iconfont icon-xiazai"></i>
                  <span>下载管理</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-kefu"></i>
                  <span>客服中心</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-zitifangda"></i>
                  <span>大字模式</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-yejian"></i>
                  <span>夜间模式</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="$router.push('/user/information')">
                <div class="item">
                  <i class="iconfont icon-xiaoxi"></i>
                  <span>消息</span>
                </div>
              </van-grid-item>
            </van-grid>
          </div>
        </div>
      </div>
      <div class="Panel-top">
        <div class="Panel">
          <div class="title"><h2>创作中心</h2></div>
          <div class="two">
            <van-grid :border="false" :column-num="4">
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-chuangzuo"></i>
                  <span>创作首页</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-shujukanban"></i>
                  <span>数据助手</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-licaishouyi"></i>
                  <span>收益提现</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="onNo">
                <div class="item">
                  <i class="iconfont icon-huodong"></i>
                  <span>活动广场</span>
                </div>
              </van-grid-item>
            </van-grid>
          </div>
        </div>
      </div>
      <div class="Panel-top">
        <div class="Panel">
          <div class="title"><h2>我的内容</h2></div>
          <div class="two">
            <van-grid :border="false" :column-num="4">
              <van-grid-item @click="goMyContent">
                <div class="item">
                  <i class="iconfont icon-lishi"></i>
                  <span>浏览历史</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="goMyContent">
                <div class="item">
                  <i class="iconfont icon-pinglun"></i>
                  <span>评论</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="goMyContent">
                <div class="item">
                  <i class="iconfont icon-dianzan"></i>
                  <span>点赞</span>
                </div>
              </van-grid-item>
              <van-grid-item @click="goMyContent">
                <div class="item">
                  <i class="iconfont icon-shoucang"></i>
                  <span>收藏</span>
                </div>
              </van-grid-item>
            </van-grid>
          </div>
        </div>
      </div>
      <!-- 我的服务 -->
      <!-- <div class="Panel-top">
        <div class="Panel">
          <div class="title"><h2>我的服务</h2></div>
          <div class="two">
            <van-grid :border="false" :column-num="4">
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-xiazai"></i>
                  <span>钱包</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-pinglun"></i>
                  <span>借钱</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-dianzan"></i>
                  <span>免流量</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-jubao"></i>
                  <span>我的订单</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-jubao"></i>
                  <span>优惠券</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-jubao"></i>
                  <span>地址管理</span>
                </div>
              </van-grid-item>
              <van-grid-item>
                <div class="item">
                  <i class="iconfont icon-jubao"></i>
                  <span>任务</span>
                </div>
              </van-grid-item>
            </van-grid>
          </div>
        </div>
      </div> -->
    </div>
  </div>
</template>
<script>
export default {
  name: 'all-service',
  components: {},
  data () {
    return {
      checked: false
    }
  },
  created () {},
  methods: {
    afterRead (file) {
      // 此时可以自行将文件上传至服务器
      console.log(file)
    },
    goMyContent () {
      this.$router.push('/user/mycontent')
    },
    onNo () {
      console.log('功能未实现')
    }
  }
}
</script>
<style lang="scss" scoped>
.all-service {
  background-color: rgb(246, 246, 246);
}
.van-nav-bar {
  background-color: rgb(246, 246, 246);
  border-bottom: 1px solid rgb(244, 243, 243);
}
.block {
  padding: 0px 15px;
  padding-bottom: 10px;
}

.Panel-top {margin-top: 10px;}
.Panel {
  overflow: hidden;
  border-radius: 6px;
  background-color: #fff;
  .title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 15px 5px 15px;
    font-size: 14px;
    color: #8585e0;
    h2 {
      margin: 0;
      color: #323233;
      font-size: 16px;
    }
  }
}
.two {
  ::v-deep .van-grid-item__content {
    text-align: center;
  }
  .item {
    display: flex;
    flex-direction: column;
    .iconfont {
      font-size: 28px;
      margin-bottom: 3px;
    }
    font-size: 14px;
  }
}
</style>
